package com.pond.pond.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.pond.common.core.annotation.Excel;
import com.pond.common.core.web.domain.BaseEntity;

/**
 * 财务记录对象 finance_record
 * 
 * @author ruoyi
 * @date 2025-05-20
 */
public class FinanceRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 所属钓场/部门ID */
    @Excel(name = "所属钓场/部门ID")
    private Long deptId;

    /** 金额（收入或支出） */
    @Excel(name = "金额", readConverterExp = "收=入或支出")
    private BigDecimal amount;

    /** 类型：INCOME收入 / EXPENSE支出 */
    @Excel(name = "类型：INCOME收入 / EXPENSE支出")
    private String type;

    /** 来源类型，如 RETURN_RECORD / TRANSFER_RECORD */
    @Excel(name = "来源类型，如 RETURN_RECORD / TRANSFER_RECORD")
    private String sourceType;

    /** 来源记录ID（如回鱼记录ID等） */
    @Excel(name = "来源记录ID", readConverterExp = "如=回鱼记录ID等")
    private Long sourceId;

    /** 财务描述 */
    @Excel(name = "财务描述")
    private String description;

    /** 记录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }

    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }

    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }

    public void setSourceType(String sourceType) 
    {
        this.sourceType = sourceType;
    }

    public String getSourceType() 
    {
        return sourceType;
    }

    public void setSourceId(Long sourceId) 
    {
        this.sourceId = sourceId;
    }

    public Long getSourceId() 
    {
        return sourceId;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public void setTime(Date time) 
    {
        this.time = time;
    }

    public Date getTime() 
    {
        return time;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deptId", getDeptId())
            .append("amount", getAmount())
            .append("type", getType())
            .append("sourceType", getSourceType())
            .append("sourceId", getSourceId())
            .append("description", getDescription())
            .append("time", getTime())
            .toString();
    }
}
